ObjectDB Database Search
101-150 of 200 resultsselecting objects that have a particular key/value in persistant HashMap
that the pMap field of some Person objects has the key /value pair "location'/'California'. Can I
|
|
TemporalType injection with Calendar using JPA
an embedded object as a primary key , which has time fields which I have annotated with TemporalType ... =31,ZONE_OFFSET=0,DST_OFFSET=3600000] ]) as a primary key (error 691) at com.objectdb.jpa.EMImpl.find ... ] ]) as a primary key at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.OBC.aF(OBC.java:745
|
|
World database - Changing country ID
to change field which is primary key ? If so what am I doing wrong? Thanks vasekt Vaclav Topinka Changing the primary key of an existing entity object is not allowed and the Explorer should be fixed to prevent it. If you have to change the primary key you should create a new entity object with the new
|
|
Mismatch client-server protocol prefix
to reuse an existing primary key value (at.co.pjm.tracker.persistence.LoginEvent:0)   ... , thanks for updating. The "Attempt to reuse an existing primary key value" exception is thrown during commit or flush and should indicate an attempt to persist a new entity object with a primary key
|
|
Slow searching with two indexes
- one is the primary key (id) and so is different for each object, and the other is an object reference that only has a few tens of different values. When I query by just the primary key , it's (of course ... are scanned to get candidates for querying the primary key . This is the slow part. I'm looking
|
|
Broken @ManyToOne reference
).getSingleResult(); because Main.CHILD_ID is only part of the primary key now. support Support Hi support ... class to represent composite primary keys in a portable JPA way. support Support Apparently ... . Adjustments are needed to support the new partial primary key feature. It should work with build 2
|
|
virtual servers and one file
might solve that problem, wether in a file per entity or just depending on continous primary key . I will try ... access (rather than a complete scan) you can retrieve objects with random primary keys (you can keep all the primary keys in memory or use a simple test database with a continuous range of simple
|
|
EntityManager JPA or JDO impl and different behavior
to reuse a primary key for AttributeName. So I removed the CascadeType.All from Holder and persisted ... how, by having a Map that it's key is an Entity and the values are a List of another entity, the list ... we are dealing with maps, the "equals" and "hashcode" methods on the key object have to be overridden
|
|
enumeration table? how to on pure jpa?
of that class. The key field could also be set as a primary key for fast and simple access by find ... Hello , I've relational db , and there is some table named enumerations with , some key and values.We will migrate to objectdb. Our problem is , we want to store some keys and values for global
|
|
Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)
a Map, and uses a Compound Primary Key . The contained class therefore uses an @IdClass. This all works ... key , CompoundKeyMapItem newObj, EntityManager em) throws TestException { newObj.setUUID(); newObj.setSingleton(this); newObj.setCachedKey( key ); em.persist(newObj); return newObj; } public
|
|
jakarta.persistence.EntityManagerFactory
. Since: Jakarta Persistence (JPA) 3.2 Map getNamedEntityGraphs ( Class entityType ) A map keyed by graph ... : a map keyed by graph name. Since: Jakarta Persistence (JPA) 3.2 Map getNamedQueries ( Class resultType ) A map keyed by query name , containing references to every named query whose result type
|
|
jakarta.persistence.criteria.MapJoin
: - the source type of the join - the type of the target Map value - the type of the target Map key Super ... Persistence (JPA) 1.0 Path key () Create a path expression that corresponds to the map key . Returns: path corresponding to map key . Since: Jakarta Persistence (JPA) 1.0 Predicate notEqualTo ( Expression
|
|
jakarta.persistence.AttributeOverride
collection whose key and/or value is an embeddable class. When AttributeOverride is applied to a map, " key . " or " value. " must be used to prefix the name of the attribute that is being overridden in order to specify it as part of the map key or map value. To override mappings at multiple levels
|
|
DISTINCT key causing internal exception on 2.6.4.b10
I observed that on new ObjectDb v.2.6.4.b10 query below causes internal exception SELECT DISTINCT $1 FROM Pa3DictionaryItem $2 JOIN $2.values $1 WHERE ($2.namespace == 'com.anritsu.pa3.ttcn3' AND $2. key == 'TliEvent' AND $1 != '') Query above also worked fine on ObjectDb version 2.6.1.b06 Harman
|
|
jakarta.persistence.MapKeyClass
: Annotation Target: Method, Field Specifies the type of the map key for associations of type Map . The map key can be a basic type, an embeddable class, or an entity. If the map is specified using Java ... Persistence (JPA) 2.0 Annotation Elements Class value (Required) The type of the map key . Since: Jakarta
|
|
jakarta.persistence.UniqueConstraint
Jakarta Persistence (JPA) Annotation Type jakarta.persistence.UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table. Example: @Entity @Table( name = "EMPLOYEE", uniqueConstraints
|
|
jakarta.persistence.Version
superclasses. The Version field or property should be mapped to the primary table of the entity
|
|
jakarta.persistence.NamedAttributeNode.keySubgraph
for the Key in the case of an Entity key type. A keySubgraph can not be specified without the Map ... entries are merged into subclass subgraphs. The value of this element is the name of the key subgraph as specified by the name element of the corresponding NamedSubgraph element. If multiple key subgraphs
|
|
jakarta.persistence.MapKeyEnumerated
Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyEnumerated Implemented Interfaces: Annotation Target: Method, Field Specifies the enum type for a map key whose basic type ... Persistence (JPA) 2.0 Annotation Elements EnumType value (Optional) The type used in mapping a map key
|
|
jakarta.persistence.ManyToOne
association usually maps a foreign key column or columns. This mapping may be specified using the JoinColumn ... must always exist. May be used in schema generation to infer that the mapped foreign key column
|
|
jakarta.persistence.MapKeyTemporal
Jakarta Persistence (JPA) Annotation Type jakarta.persistence.MapKeyTemporal Implemented Interfaces: Annotation Target: Method, Field This annotation must be specified for persistent map keys of type Date and Calendar . It may only be specified for map keys of these types. The MapKeyTemporal
|
|
jakarta.persistence.criteria.CriteriaBuilder
- expression to be tested Returns: predicate. Since: Jakarta Persistence (JPA) 1.0 Expression keys ( M map ) Create an expression that returns the keys of a map. Parameters: map - map Returns: set
|
|
jakarta.persistence.AttributeNode
associated with this attribute node's map key . Returns: a Map of subgraphs associated with this attribute node's map key or an empty Map if none have been defined. Since: Jakarta Persistence (JPA) 1.0 Map
|
|
jakarta.persistence.metamodel.ManagedType.getMap(String,Class,Class)
the Map-valued attribute of the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type ... of the given name and key and value types. Throws: IllegalArgumentException - if attribute of the given
|
|
jakarta.persistence.metamodel.ManagedType.getDeclaredMap(String,Class,Class)
and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type of the represented attribute valueType - the value type of the represented attribute Returns: declared MapAttribute of the given name and key and value types. Throws: IllegalArgumentException
|
|
jakarta.persistence.PessimisticLockScope.NORMAL
for which the locked entity contains the foreign key will also be locked, but not the state ... and relationships for which the entity does not contain the foreign key (such as relationships that are mapped ... the foreign key ) will not be locked by default. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.ForeignKey.value
) Used to specify whether a foreign key constraint should be generated when schema generation is in effect. ConstraintMode.CONSTRAINT specifies that the persistence provider must generate a foreign key ... or columns to which the foreign key annotation is applied. ConstraintMode.NO_CONSTRAINT specifies
|
|
jakarta.persistence.metamodel.MapAttribute.getKeyJavaType()
Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.MapAttribute Class getKeyJavaType() Return the Java type of the map key . Returns: Java key type. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.metamodel.MapAttribute.getKeyType()
Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.MapAttribute Type getKeyType() Return the type representing the key type of the map. Returns: type representing key type. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.Graph.addKeySubgraph(Attribute)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addKeySubgraph ( Attribute attribute ) Add a node to the graph that corresponds to a map key that is a managed ... . Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws: IllegalStateException
|
|
jakarta.persistence.Graph.addKeySubgraph(String)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addKeySubgraph ( String attributeName ) Add a node to the graph that corresponds to a map key that is a managed ... . Parameters: attributeName - name of the attribute Returns: subgraph for the key attribute. Throws
|
|
jakarta.persistence.Graph.addMapKeySubgraph(MapAttribute)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addMapKeySubgraph ( MapAttribute attribute ) Add a node to the graph that corresponds to a map key ... . Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws
|
|
jakarta.persistence.EntityManagerFactory.getNamedQueries(Class)
types A map keyed by query name , containing references to every named query whose result type ... meaning all queries Returns: a map keyed by query name. Since: Jakarta Persistence (JPA) 3.2
|
|
jakarta.persistence.EntityManagerFactory.getNamedEntityGraphs(Class)
graph types A map keyed by graph name , containing every named entity graph whose entity type ... all entity graphs Returns: a map keyed by graph name. Since: Jakarta Persistence (JPA) 3.2
|
|
jakarta.persistence.EntityResult
should select all the columns that are mapped to the entity object. This should include foreign key
|
|
jakarta.persistence.TypedQueryReference
) Since: Jakarta Persistence (JPA) 3.2 Public Instance Methods Map getHints () A map keyed by hint name
|
|
again merger missing logs + objectdb exception
in a separate page and has a wrapper key that consists of the original primary key of the object ... ; ObjectProperty instances have nested wrappers, i.e. a section key wrapper that wraps another section key wrapper that wraps the original primary key . This is an unexpected state. Unfortunately
|
|
InternalException when using MEMBER OF on a large list in a query
that combine large objects with long primary keys . In such objects the keys may not be embedded in ... the exception - storing large objects with long primary keys is not very efficient, because non embeddable keys are slower. If possible, try to avoid primary keys longer than 32 bytes (in the test
|
|
jakarta.persistence.TypedQueryReference.getHints()
Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQueryReference Map getHints() A map keyed by hint name of all hints specified via NamedQuery.hints or NamedNativeQuery.hints . Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.Graph.addKeySubgraph(Attribute,Class)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addKeySubgraph ( Attribute attribute , Class type ) Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity
|
|
jakarta.persistence.Graph.addKeySubgraph(String,Class)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addKeySubgraph ( String attributeName , Class type ) Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity
|
|
jakarta.persistence.Graph.addTreatedMapKeySubgraph(MapAttribute,Class)
Jakarta Persistence (JPA) Method in jakarta.persistence.Graph Subgraph addTreatedMapKeySubgraph ( MapAttribute attribute , Class type ) Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi
|
|
jakarta.persistence.ForeignKey.name
Jakarta Persistence (JPA) Method in jakarta.persistence.ForeignKey String name (Optional) The name of the foreign key constraint. Defaults to a provider-generated name. Default: "" Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.ForeignKey.foreignKeyDefinition
Jakarta Persistence (JPA) Method in jakarta.persistence.ForeignKey String foreignKeyDefinition (Optional) The foreign key constraint definition. Default: "" Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.ForeignKey.options
Jakarta Persistence (JPA) Method in jakarta.persistence.ForeignKey String options (Optional) A SQL fragment appended to the generated DDL which creates this foreign key . May not be used in conjunction with ForeignKey.foreignKeyDefinition . Default: "" Since: Jakarta Persistence (JPA) 3.2
|
|
jakarta.persistence.ManyToOne.optional
Jakarta Persistence (JPA) Method in jakarta.persistence.ManyToOne boolean optional (Optional) Whether the association is optional. If set to false then a non-null relationship must always exist. May be used in schema generation to infer that the mapped foreign key column is not null . Default: true Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.MapKeyClass.value
Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyClass Class value (Required) The type of the map key . Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.MapKeyEnumerated.value
Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyEnumerated EnumType value (Optional) The type used in mapping a map key enum type. Default: EnumType.ORDINAL Since: Jakarta Persistence (JPA) 1.0
|
|
ObjectDB needs "insert ignore"
. However, to check if a specific primary key is in use, you may also use find or getReferemce (see this page ... primary key (see this page ). support Support I've discussed "find() cost unreasonable time!". You'd ... How do you get the duplicate primary key error? Are you using persist ? You may try merge instead
|
|
[ObjectDB 2.3.7_08] Unexpected exception (Error 990)
primary key value during persist. Please provide more information on the object that fails to persist. Has it class been changed recently? How exactly the primary key is defined? Which value is used as a primary key in the specific object that fails to persist? support Support Hi there, I traced
|